package com.hhsjdesign.dynamicui.core.widgetdata

import com.hhsjdesign.dynamicui.annoprocess.ADynamicUI
import com.hhsjdesign.dynamicui.annoprocess.AWidgetData
import com.hhsjdesign.dynamicui.core.property.widget.BannerSWidgetProperty
import com.hhsjdesign.dynamicui.core.property.widget.ISpecPropertyTransformer
import org.json.JSONObject

/**
 * 轮播组件数据
 * BannerSimpleProperty
 */
@ADynamicUI
@AWidgetData(WidgetTypeConst.BANNER_SINGLE)
class BannerSWidgetData(jo: JSONObject) : WidgetData(jo),
    ISpecPropertyTransformer<BannerSWidgetProperty> {

    override fun transformWidgetSpecProperty(): BannerSWidgetProperty {
        return specProperty as BannerSWidgetProperty
    }

}